//
//  Message_Extras.m
//  funkydog
//
//  Created by Saptarshi Guha on 1/16/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "CriteriaUIHelper.h"
#import "MessageViewer_Extras.h"
#import "SearchSliceView-Extras.h"
#import <objc/objc.h>
#import <objc/objc-runtime.h>
#import <objc/objc-class.h>
@implementation MessageViewer(Extras)
+(void)load{
	if (self == [MessageViewer class]){
		Method originalMethod ,replacedMethod;
		originalMethod  = class_getInstanceMethod(self, @selector(_showSearchSliceView)); 
		replacedMethod  = class_getInstanceMethod(self, @selector(my_showSearchSliceView));
		method_exchangeImplementations(originalMethod, replacedMethod);
		//originalMethod  = class_getInstanceMethod(self, @selector(performSearch:)); 
		//replacedMethod  = class_getInstanceMethod(self, @selector(myperformSearch:));
		//method_exchangeImplementations(originalMethod, replacedMethod);
		//originalMethod  = class_getInstanceMethod(self, @selector(setupSearchParametersForTag:)); 
		//replacedMethod  = class_getInstanceMethod(self, @selector(mysetupSearchParametersForTag:));
		//method_exchangeImplementations(originalMethod, replacedMethod);
		
	}
}
//- (void)myperformSearch:(id)fp8{
////	NSLog(@"Field _currentSearchField %d, _selectedTag %d",_currentSearchField,_selectedTag);
//	[self myperformSearch:fp8];
//}
//- (void)mysetupSearchParametersForTag:(int)fp8{
//	[self mysetupSearchParametersForTag:fp8];
//}
- (void)my_showSearchSliceView{
	[_searchSliceView _setupView];
	[self my_showSearchSliceView];

}

@end
